import { createRouter, createWebHistory } from 'vue-router'

const routes = [
	{
		path: '/home',
		name: 'home',
		component: () => import('@/views/home.vue')
	},
	{
		path: '/about',
		name: 'about',
		component: () => import('@/views/about.vue')
	}
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

router.beforeEach((to, from, next) => {
	console.log((to, from, next))
	next()
	// eslint-disable-next-line no-debugger
	// debugger
})


export default router
